﻿/*
 *Author:YangTao
 *Email:YangTao_Unity3d@163.com
 *Create Data:2017..
 *Last modified date:2017..
 *Description:
*/
using UnityEngine;
using System.Collections;

public class ClickClientButton : MonoBehaviour
{
    public GameObject m_buttonBg;
    public bool m_isAdd;
    public UILabel m_clientIPLabel;

    void Start()
    {
        Init();
    }

    void Init()
    {               
        m_isAdd = false;
    }

    void Update()
    {
        
    }
    
    void OnClick()
    {
        if (!m_isAdd)
        {
            m_buttonBg.GetComponent<UISprite>().color = Color.red;
            m_isAdd = true;
        }
        else
        {
            m_buttonBg.GetComponent<UISprite>().color = Color.white;
            m_isAdd = false;
        }
        
    }
}